package com.hjxr.xmgl.web.mapper;

import com.hjxr.xmgl.web.domain.QuotaEarlyWarning;

import java.util.List;

/**
 * 预警指标配置Mapper接口
 * 
 * @author hjxr
 * @date 2021-12-02
 */
public interface QuotaEarlyWarningMapper 
{
    /**
     * 查询预警指标配置
     * 
     * @param ewId 预警指标配置ID
     * @return 预警指标配置
     */
    public QuotaEarlyWarning selectQuotaEarlyWarningById(String ewId);

    /**
     * 查询预警指标配置列表
     * 
     * @param quotaEarlyWarning 预警指标配置
     * @return 预警指标配置集合
     */
    public List<QuotaEarlyWarning> selectQuotaEarlyWarningList(QuotaEarlyWarning quotaEarlyWarning);

    /**
     * 新增预警指标配置
     * 
     * @param quotaEarlyWarning 预警指标配置
     * @return 结果
     */
    public int insertQuotaEarlyWarning(QuotaEarlyWarning quotaEarlyWarning);

    /**
     * 修改预警指标配置
     * 
     * @param quotaEarlyWarning 预警指标配置
     * @return 结果
     */
    public int updateQuotaEarlyWarning(QuotaEarlyWarning quotaEarlyWarning);

    /**
     * 删除预警指标配置
     * 
     * @param ewId 预警指标配置ID
     * @return 结果
     */
    public int deleteQuotaEarlyWarningById(String ewId);

    /**
     * 批量删除预警指标配置
     * 
     * @param ewIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteQuotaEarlyWarningByIds(String[] ewIds);
}
